package dada_rent_car;

/**
 * @author duyong
 * @version 1.0
 * @date 2019/10/21 19:42
 */
public class Pickup_Car extends Car {
    //构造器
    public Pickup_Car(){

    }
    public Pickup_Car(int id,String name,int price,int cargo_capacity,int passenger_capacity){
        super.Car(id,name,price,cargo_capacity,passenger_capacity);

    }
    @Override
    public void printf() {
        System.out.println(this.getId()+"\t"+this.getName()+"\t"+this.getPrice()+"元/天 \t"+"载重"+this.getCargo_capacity()+"吨"+" 载人"+this.getPassenger_capacity()+"位");
    }
}
